﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPages/Core.Master"
    CodeBehind="CancelLoanDebts.aspx.cs" Inherits="Pap.Web.Modules.Loan.Views.CancelLoanDebts"
    meta:resourcekey="PageResource1" %>

<%@ Register Src="../../Shared/Views/InsertAttchments.ascx" TagName="InsertAttachment"
    TagPrefix="attach" %>
<asp:Content runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <ext:FitLayout ID="FitLayout1" runat="server" IDMode="Legacy" meta:resourcekey="FitLayout1Resource1">
        <ext:Panel runat="server" meta:resourcekey="PanelResource1" AutoScroll="true">
            <Body>
                <ext:FormPanel ID="panelWhole" IDMode="Static" runat="server" Title="Client Prosecution"
                    meta:resourcekey="panelWholeResource1" ElementStyle="">
                    <Defaults>
                        <ext:Parameter Name="Anchor" Value="50%" Encode="False" Mode="Value" />
                    </Defaults>
                    <Body>
                        <ext:FormLayout ID="FormLayout1" runat="server" ElementStyle="" ItemCls="" meta:resourcekey="FormLayout1Resource1">
                            <ext:Anchor>
                                <ext:TextField runat="server" ID="txtLoanNumber" FieldLabel="LoanNumber" Disabled="True"
                                    meta:resourcekey="txtLoanNumberResource1" Text="" />
                            </ext:Anchor>
                            <ext:Anchor>
                                <ext:TextField runat="server" ID="txtCustomerName" FieldLabel="CustomerName" Disabled="True"
                                    meta:resourcekey="txtCustomerNameResource1" Text="" />
                            </ext:Anchor>
                            <ext:Anchor>
                                <ext:TextField runat="server" ID="txtLoanDate" FieldLabel="LoanDate" Disabled="True"
                                    meta:resourcekey="txtLoanDateResource1" Text="" />
                            </ext:Anchor>
                            <ext:Anchor Horizontal="95%">
                                <ext:TextArea runat="server" ID="txtReasonOfDebtsCanclling" FieldLabel="Notes" meta:resourcekey="txtNotesResource1"
                                    Text="" />
                            </ext:Anchor>
                            <ext:Anchor Horizontal="99%">
                                <ext:Panel runat="server" AutoHeight="true">
                                    <Body>
                                        <attach:InsertAttachment runat="server" ID="attachCtrl" ViewMode="Edit" />
                                    </Body>
                                </ext:Panel>
                            </ext:Anchor>
                        </ext:FormLayout>
                    </Body>
                    <BottomBar>
                        <ext:StatusBar runat="server" meta:resourcekey="StatusBarResource1" DefaultText=""
                            IDMode="Static">
                            <Items>
                                <ext:ToolbarSpacer runat="server" ID="toolbarSPa" IDMode="Static" />
                                <ext:Button runat="server" ID="btnSave" Text="Save" Icon="Disk" meta:resourcekey="btnSaveResource1"
                                    CommandArgument="" CommandName="" IDMode="Static" OnClientClick="">
                                    <AjaxEvents>
                                        <Click OnEvent="BtnSave_Clicked" Before="return Ext.getCmp('panelWhole').getForm().isValid();">
                                            <Confirmation Message="<%$ Resources:MSGConfirmation %>" ConfirmRequest="True" BeforeConfirm="return Ext.getCmp('panelWhole').getForm().isValid();"
                                                Title="<%$ Resources:TitleConfirmation %>" />
                                            <EventMask ShowMask="True" />
                                        </Click>
                                    </AjaxEvents>
                                </ext:Button>
                            </Items>
                        </ext:StatusBar>
                    </BottomBar>
                </ext:FormPanel>
            </Body>
        </ext:Panel>
    </ext:FitLayout>
</asp:Content>
